
<h3 class="yonghu">数据源管理</h3>
<div class="shangFrom shangFrom1 clearfix">
    <div class="zhuang-tai">
        <select id="location_area" name="location_area" class="branch_company" style="margin-left:15px;color: rgb(169, 169, 169);">
            <?php if ($is_hq): ?>
            <option value="">请选择分公司</option>
            <?php endif ?>
            <?php foreach ($bc_list as $k => $v): ?>
            <option value="{$k}"
            <?php if (I('get.bc_city') == $k): ?>
            selected="selected"
            <?php endif ?>
            >{$v}</option>
            <?php endforeach ?>
        </select>
    </div>
</div>
<div class="data-source">
    <ul id="development">
        <foreach name="list" item="obj">
            <?php if($obj['id'] == 1):?>
                <?php if($auth['developer']):?>
                    <li id="{$obj.id}">{$obj.value}</li>
                <?php endif;?>
            <?php endif;?>

            <?php if($obj['id'] == 2):?>
                <?php if($auth['watcher']):?>
                    <li id="{$obj.id}">{$obj.value}</li>
                <?php endif;?>
            <?php endif;?>

        </foreach>
    </ul>
</div>
<script>
    $(function(){
        $("#development li").each(function(){
            $(this).click(function(){
                var branchId = $('#location_area').val();
                window.open('/Identity/detail?branch_id='+branchId+"&id="+this.id ,'_blank');
            })
        })
    })
</script>